package com.ruoyi.store.mapper;

import com.ruoyi.stage.domain.StuStage;
import com.ruoyi.store.domain.StuQuestionStore;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StuQuestionStoreMapper {
    /**
     * 显示所有题库列表
     */
     List<StuQuestionStore> selectStuQuestionStoreList(StuQuestionStore stuQuestionStore);

     StuQuestionStore  selectStoreById(Long storeId);

    /**
     * 添加题库
     */
    int insertStore(StuQuestionStore stuQuestionStore);


    /**
     * 根据名称查找题库
     * @param
     * @return
     */
    StuQuestionStore checkStoreNameUnique(String storeName);

    /**
     * 修改题库名称
     */
    int updateStore(StuQuestionStore stuQuestionStore);

    /**
     * 删除题库
     */
    int   deleteStoreByIds(Long[] storeIds);



    List<StuQuestionStore> selectAllStores();

    List<Long> selectStuStoresListByQuesId(Long quesId);


    int refreshStat(@Param("storeId") String storeId);

    Long selectStoreCounts(Long storeId);
}
